<script setup lang="ts">
import { ref } from 'vue';

const customPaymentRef = ref()
const open = ()=>{
  customPaymentRef.value.open()
}
</script>

<template>
  <view>
    <button @click="open">打开弹窗</button>
    <custom-payment ref="customPaymentRef" />
  </view>
</template>

<style scoped></style>